home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / x / gui / amiga / twm93053.lha / twm / Makefile < prev    next >
Encoding:
Makefile  |  1993-05-30  |  7.0 KB  |  240 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. #  -------------------------------------------------------------------------
  10. #  Makefile generated from "Imake.tmpl"  and <Imakefile>
  11. #  $XConsortium: Imake.tmpl,v 1.138 91/07/30 14:59:20 rws Exp $
  12. #
  13. #  Platform-specific parameters may be set in the appropriate <vendor>.cf
  14. #  configuration files.  Site-specific parameters should be set in the file
  15. #  site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. #  If your C preprocessor does not define any unique symbols, you will need
  18. #  to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. #  "make World" the first time).
  20. #
  21.  
  22. #  -------------------------------------------------------------------------
  23. #  site-specific configuration parameters that need to come before
  24. #  the platform-specific parameters - edit site.def to change
  25.  
  26.           XLIBSRC = /ch/x11
  27.            TWMDIR = /gcc/src/x11/twm
  28.              XLIB = -lXt -lX11
  29.      EXTENSIONLIB = -lXext
  30.            XMULIB = -lXmu
  31.  
  32. #  -------------------------------------------------------------------------
  33. #  platform-specific configuration parameters - edit amiga.cf  to change
  34.  
  35. #  -------------------------------------------------------------------------
  36. #  site-specific configuration parameters that go after
  37. #  the platform-specific parameters - edit site.def to change
  38.  
  39.           XLIBSRC = /ch/x11
  40.            TWMDIR = /gcc/src/x11/twm
  41.              XLIB = -lXt -lX11
  42.      EXTENSIONLIB = -lXext
  43.            XMULIB = -lXmu
  44.  
  45.             SHELL = /bin/sh
  46.  
  47.               TOP =
  48.       CURRENT_DIR =
  49.  
  50.                AR = ar clq
  51.   BOOTSTRAPCFLAGS =
  52.                CC = gcc
  53.                AS = as
  54.  
  55.          COMPRESS = compress
  56.               CPP = cpp  $(STD_CPP_DEFINES)
  57.     PREPROCESSCMD = gcc  -E  $(STD_CPP_DEFINES)
  58.           INSTALL = copy
  59.                LD = ld
  60.              LINT = lint
  61.       LINTLIBFLAG = -C
  62.          LINTOPTS = -axz
  63.                LN = makelink
  64.              MAKE = dmake
  65.                MV = rename
  66.                CP = copy
  67.  
  68.            RANLIB = ranlib
  69.   RANLIBINSTFLAGS =
  70.  
  71.                RM = rm
  72.             TROFF = groff
  73.          MSMACROS = -man
  74.               TBL = tbl
  75.               EQN = eqn
  76.      STD_INCLUDES =
  77.   STD_CPP_DEFINES =
  78.       STD_DEFINES =
  79.  EXTRA_LOAD_FLAGS =
  80.   EXTRA_LIBRARIES = -lnet -lc -lamiga
  81.              TAGS = ctags
  82.  
  83.     PROTO_DEFINES =
  84.  
  85.      INSTPGMFLAGS =
  86.  
  87.      INSTBINFLAGS = -m 0755
  88.      INSTUIDFLAGS = -m 4755
  89.      INSTLIBFLAGS = -m 0644
  90.      INSTINCFLAGS = -m 0444
  91.      INSTMANFLAGS = -m 0444
  92.      INSTDATFLAGS = -m 0444
  93.     INSTKMEMFLAGS = -m 4755
  94.  
  95.       CDEBUGFLAGS =
  96.         CCOPTIONS = -O2 -m68020 -m68881
  97.  
  98.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  99.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  100.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  101.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  102.  
  103.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  104.  
  105.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS)
  106.  
  107.    LDCOMBINEFLAGS = -X -r
  108.       DEPENDFLAGS =
  109.  
  110.         MACROFILE = amiga.cf
  111.            RM_CMD = $(RM) *.bak *.o *.a tags make.log MakeOut
  112.  
  113.     IMAKE_DEFINES =
  114.  
  115.          IRULESRC = $(CONFIGDIR)
  116.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  117.  
  118.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  119.  
  120. #  -------------------------------------------------------------------------
  121. #  Imake rules for building libraries, programs, scripts, and data files
  122. #  rules:  $XConsortium: Imake.rules,v 1.121 91/08/22 16:32:50 rws Exp $
  123.  
  124. #  -------------------------------------------------------------------------
  125. #  start of Imakefile
  126.  
  127. #  $XConsortium: Imakefile,v 1.33 91/07/17 00:48:06 gildea Exp $
  128. #
  129. #  Here is an Imakefile for twm.  It depends on having TWMDIR defined
  130. #  in Imake.tmpl.  I like to use Imakefiles for everything, and I am sure
  131. #  other people do also, so perhaps you could do us all a favor and
  132. #  distribute this one.
  133. #
  134.  
  135.          YFLAGS = -d
  136.         DEPLIBS = $(DEPXMULIB) $(DEPEXTENSIONLIB) $(DEPXLIB)
  137. LOCAL_LIBRARIES = $(XMULIB) $(EXTENSIONLIB) $(XLIB)
  138.        LINTLIBS = $(LINTXMU) $(LINTEXTENSIONLIB) $(LINTXLIB)
  139.         DEFINES = $(SIGNAL_DEFINES)
  140.  
  141.    ALLTWMDEBUGS = -DDEBUG -DDEBUG_MENUS -DDEBUG_EVENTS -DDEBUG_IC0NMGR -DTRACE
  142.  
  143.            SRCS = gram.c lex.c deftwmrc.c add_window.c gc.c list.c twm.c         parse.c menus.c events.c resize.c util.c version.c iconmgr.c         cursor.c icons.c
  144.  
  145.            OBJS = gram.o lex.o deftwmrc.o add_window.o gc.o list.o twm.o         parse.o menus.o events.o resize.o util.o version.o iconmgr.o         cursor.o icons.o
  146.  
  147. all:: twm
  148.  
  149. depend:: lex.c gram.c deftwmrc.c
  150.  
  151.  PROGRAM = twm
  152.  
  153. all:: twm
  154.  
  155. twm: $(OBJS) $(DEPLIBS)
  156.     $(RM) $@
  157.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  158.  
  159. install:: twm
  160.      @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  161.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  162.     $(INSTALL) -c $(INSTPGMFLAGS)   twm $(DESTDIR)$(BINDIR)
  163.  
  164. install.man:: twm.man
  165.      @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  166.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  167.     $(INSTALL) -c $(INSTMANFLAGS) twm.man $(DESTDIR)$(MANDIR)/twm.$(MANSUFFIX)
  168.  
  169. depend::
  170.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  171.  
  172. lint:
  173.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  174. lint1:
  175.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  176.  
  177. clean::
  178.     $(RM) $(PROGRAM)
  179.  
  180. install:: system.twmrc
  181.      @if [ -d $(DESTDIR)$(TWMDIR) ]; then set +x; \
  182.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(TWMDIR)); fi
  183.     $(INSTALL) -c $(INSTDATFLAGS) system.twmrc $(DESTDIR)$(TWMDIR)
  184.  
  185. gram.o: gram.y
  186.     yacc $(YFLAGS) gram.y
  187.     $(RM) gram.c gram.h
  188.     $(MV) y.tab.c gram.c
  189.     $(MV) y.tab.h gram.h
  190.     $(CC) $(CFLAGS) -c gram.c
  191.  
  192. lex.o: lex.l
  193.     flex $(LFLAGS) lex.l
  194.     $(RM) lex.c
  195.     $(MV) lex.yy.c lex.c
  196.     $(CC) $(CFLAGS) -c lex.c
  197.  
  198. clean::
  199.     $(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c deftwmrc.c
  200.  
  201. deftwmrc.o:  system.twmrc
  202.     sed -f sed.commands system.twmrc >sed.output
  203.     join sed.begin sed.output sed.end as deftwmrc.c
  204.     $(CC) $(CFLAGS) -c deftwmrc.c
  205.  
  206. #  -------------------------------------------------------------------------
  207. #  common rules for all Makefiles - do not edit
  208.  
  209. emptyrule::
  210.  
  211. clean::
  212.     $(RM_CMD) "#"*
  213.  
  214. Makefile::
  215.     -@if [ -f Makefile ]; then set -x; \
  216.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  217.     else exit 0; fi
  218.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  219.  
  220. tags::
  221.     $(TAGS) -w *.[ch]
  222.     $(TAGS) -xw *.[ch] > TAGS
  223.  
  224. #  -------------------------------------------------------------------------
  225. #  empty rules for directories that do not have SUBDIRS - do not edit
  226.  
  227. install::
  228.     @echo "install in $(CURRENT_DIR) done"
  229.  
  230. install.man::
  231.     @echo "install.man in $(CURRENT_DIR) done"
  232.  
  233. Makefiles::
  234.  
  235. includes::
  236.  
  237. #  -------------------------------------------------------------------------
  238. #  dependencies generated by makedepend
  239.  
  240.